<!DOCTYPE html>
<html>
<head>
    <title>APP下载</title>
    #parse("sys/header.html")
    <script src="${rc.contextPath}/statics/libs/ajaxupload.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            #if($shiro.hasPermission("appdownload:save"))
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            #end
            #if($shiro.hasPermission("appdownload:update"))
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            #end
            #if($shiro.hasPermission("appdownload:delete"))
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            #end
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">app最新版本号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="appDownload.appLatestVersionCode"
                           placeholder="app最新版本号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">app版本名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="appDownload.appVersionName" placeholder="app版本名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">手机操作系统（ios，android）</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="appDownload.mobileSystem"
                           placeholder="手机操作系统（ios，android）"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">app下载地址</div>
                <div class="col-sm-10">
                    <input type="text"  id="downloadPath"  readonly class="form-control" v-model="appDownload.appDownAddr" placeholder="app下载地址"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <a class="btn btn-primary" id="upload"><i class="fa fa-plus"></i>&nbsp;上传文件</a>
                </div>

            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">app描述信息</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="appDownload.appDescription" placeholder="app描述信息"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">是否强制升级（0否，1是）</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="appDownload.isMandatoryUpgrade"
                           placeholder="是否强制升级（0否，1是）"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">信息录入时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="appDownload.infoEntryTime" placeholder="信息录入时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">状态</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="appDownload.status" placeholder="状态"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${rc.contextPath}/js/generator/appdownload.js?_${date.systemTime}"></script>
</body>
</html>